import random

from Tools.scripts.treesync import raw_input

number = random.randint(0, 100)
guess = -1
print('数学猜字游戏')
while guess != number:
    guess = int(raw_input('请输入数字：'))
    if guess == number:
        print('恭喜猜对了')
    elif guess > number:
        print('猜大了')
    else:
        print('猜小了')

